package cn.zcib.film.service;

import cn.zcib.film.bean.Subject;
import cn.zcib.film.bean.vo.SellVO;
import cn.zcib.film.bean.vo.SubjectVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;
import java.util.Map;
import java.util.TreeMap;

public interface SubjectService {

    int addSub(Subject subject);

    int updateSub(Subject subject);

    int delSubById(Integer sId);

    List<Subject> findSubs(SubjectVO vo);
    //统计某一类型下有多少部电影
    int getSubCountByTypeId(Integer typeId);
    //统计某些类型下有多少部电影
    int getSubCountByTypeIds(List<Integer> tIds);

    int countSubjects();

    //批量删除电影
    int groupDelSubject(List<Integer> sIds);

    Map<String,Object> picUpload(MultipartFile file);
    //获取票房
    Map<String ,Integer> getSell();
    //获取前十
    List<Subject> getTopStar();
}
